package ccpvspiral1;

import java.util.ArrayList;

public class NamedArrayList<T> extends ArrayList<T>{

	/**
	 * Default id
	 */
	private static final long serialVersionUID = 1L;

	public String name;
	
	public NamedArrayList() {
		  
	}
	
	public NamedArrayList (String name) {
		this.name = name;
	}
	
	public String toString() {
		String st = "(";
		st = st + this.name;
		for (T value: this) {
		  st = st + ", " + value.toString();	
		}
		st = st + ")";
		return st;
	}
	
}
